package br.com.mmm.javacenter.framework.view.taglib.tags;

import java.io.IOException;

import javax.servlet.jsp.JspException;

import br.com.mmm.javacenter.framework.view.taglib.helper.Form;

public class FormTag extends JavaCenterSimpleTagSupport{
	private String nome;
	private String controller;
	private String action;
	private Object entity;
	private String legenda;
	private String hiddens;
	private boolean forwardParameters;
	
	public void doTag() throws JspException, IOException {
		Form form = new Form(getJspContext(), getJspBody());
		form.setNome(nome);
		form.setController(controller);
		form.setEntity(entity);
		form.setAction(action);
		form.setLegenda(legenda);
		form.setHiddens(hiddens);
		form.setForwardParameters(forwardParameters);
		form.make();
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getController() {
		return controller;
	}

	public void setController(String controller) {
		this.controller = controller;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Object getEntity() {
		return entity;
	}

	public void setEntity(Object entity) {
		this.entity = entity;
	}

	public String getLegenda() {
		return legenda;
	}

	public void setLegenda(String legenda) {
		this.legenda = legenda;
	}

	public String getHiddens() {
		return hiddens;
	}

	public void setHiddens(String hiddens) {
		this.hiddens = hiddens;
	}

	public boolean isForwardParameters() {
		return forwardParameters;
	}

	public void setForwardParameters(boolean forwardParameters) {
		this.forwardParameters = forwardParameters;
	}
}
